package blyth;

import java.awt.Point;

public class Food {

    public int value;
    public Point position;
    public boolean isInTask;

    public Food(int value, Point position) {
        this.value = value;
        this.position = position;
        this.isInTask = false;
    }

    public void RefreshIntel(Food food) {
        this.value = food.value;
    }

    public int GetEatTime() {
        return (int) Math.round((double) value
                / (double) (World.foodLostPerTurn + World.maxEatPerTurn));
    }
}